﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTO;
using DAO;
namespace BUS
{
    public class Khoa_BUS
    {
        public static DataTable DanhSachKhoa()
        {
            return Khoa_DAO.DanhSachKhoa();
        }
        public static Boolean Themkhoa(Khoa_DTO k_dto)
        {
            try
            {
                return Khoa_DAO.ThemKhoa(k_dto);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static Boolean XoaKhoa(string Ma)
        {
            return Khoa_DAO.XoaKhoa(Ma);
        }

        public static Boolean CapNhatKhoa(Khoa_DTO k_dto)
        {
            return Khoa_DAO.CapNhatKhoa(k_dto);
        }
    }
}
